package com.komon.object.response;

import java.io.IOException;
import java.io.OutputStream;

public class FixedLengthResponseOutputStream extends ResponseOutputStream {

	public FixedLengthResponseOutputStream(HttpResponse response,
			OutputStream socketOutputStream) {
		super(response, socketOutputStream);
	}

	@Override
	protected void flushBody() throws IOException {
		int lengthOfData = bufferOffset;
		socketOutputStream.write(buffer,0,lengthOfData);
	}

}
